import { post,get } from "@/utils/request";
import config from "@/config/api/adminConfig"

export const getAdminApiYs = async (page = 1) => {
  let ret = await get(config.getAdminYsguahao + page)
  // console.log(ret);
  return ret
}
export const getAdminSearch = async (name) => {
  let ret = await post(config.getAdminSearch,name)
  return ret
}

export const delAdmin = async (id) => {
  let ret = await post(config.getAdminDel,id)
  return ret
}
